package com.atdel.demo03;


/**
 * @BelongsProject: java_study
 * @BelongsPackage: com.atdel.demo03
 * @Author: Del
 * @CreateTime: 2025-03-03  19:20
 * @Description: TODO
 * @Version: 1.0
 */
public class PaymentClient {
    public static void main(String[] args) {
        PaymentContext context = new PaymentContext(new WeChatPaymentStrategy());
        context.executePayment(100.0);

        context = new PaymentContext(new AliPaymentStrategy());
        context.executePayment(200.0);
    }
}
